Auto merge of #2849 - wezm:publish_dry_run, r=alexcrichton
authorbors <bors@rust-lang.org>
Mon, 18 Jul 2016 05:25:52 +0000 (22:25 -0700)
committerGitHub <noreply@github.com>
Mon, 18 Jul 2016 05:25:52 +0000 (22:25 -0700)
commitf2cf284b0d574b3fdd3be7bdae5a71d619704c48
treec0fe7bebd00ed289aa47f88cb91ff1c89516250f
parent747c0e888c2dfdc1949539182c9e91dca750f1e6
parentc05a5b4a1ea367ba84b67eb80c15d74aae5615e8
Auto merge of #2849 - wezm:publish_dry_run, r=alexcrichton

Add --dry-run to cargo publish

This PR picks up where @JustAPerson left off in https://github.com/rust-lang/cargo/pull/1699. I've updated their changes to apply to current master and added tests, including (I think) a test that checks that the upload doesn't actually occur.

The output is as it was before:

![output](https://cloud.githubusercontent.com/assets/21787/16720362/f7ea710e-4778-11e6-8163-65f3978bb7ae.png)

Closes https://github.com/rust-lang/cargo/issues/1332